package com.tiantianyuegou.model;

import java.io.Serializable;
import java.util.List;

/**
 * 购买商品界面的规格选择，（组合好的带价格）
 * Created by huyang on 2016/1/21 0021.
 */
public class SpecModel implements Serializable {

    private String specPrice;//价格
    private int specStore;//库存
    private List<Spec> spec;
    private boolean isChoose;

    public List<Spec> getSpec() {
        return spec;
    }

    public void setSpec(List<Spec> spec) {
        this.spec = spec;
    }

    public String getSpecPrice() {
        return specPrice;
    }

    public void setSpecPrice(String specPrice) {
        this.specPrice = specPrice;
    }

    public int getSpecStore() {
        return specStore;
    }

    public void setSpecStore(int specStore) {
        this.specStore = specStore;
    }

    public boolean isChoose() {
        return isChoose;
    }

    public void setIsChoose(boolean isChoose) {
        this.isChoose = isChoose;
    }

    public static class Spec {
        private int groupId;
        private String groupName;
        private int childId;
        private String childName;

        public int getGroupId() {
            return groupId;
        }

        public void setGroupId(int groupId) {
            this.groupId = groupId;
        }

        public String getGroupName() {
            return groupName;
        }

        public void setGroupName(String groupName) {
            this.groupName = groupName;
        }

        public int getChildId() {
            return childId;
        }

        public void setChildId(int childId) {
            this.childId = childId;
        }

        public String getChildName() {
            return childName;
        }

        public void setChildName(String childName) {
            this.childName = childName;
        }
    }
}
